/***************************************************************************
 *   Copyright (C) 2008 by Robert Depke   *
 *   lp-meteora-lp@web.de   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

/****************************************************************************
 * jueimainwindow.h
 * author: Robert Depke
 * date: 09.04.08
 ****************************************************************************/

#ifndef JUEIMAINWINDOW_H
#define JUEIMAINWINDOW_H

#include <QMainWindow>

//#include "jueimanager.h"
#include "jnewseriesdialog.h"
#include "jnewitemdialog.h"

#include "ui_jueimainwindow.h"

//----------------------------------------------------------------------------
class JUeiMainWindow: public QMainWindow
{
	Q_OBJECT

	public:
		JUeiMainWindow();
		~JUeiMainWindow();

	protected:
      	//void closeEvent(QCloseEvent *event);
		QSqlDatabase connectDB();

	private slots:
		void newSeries();
		void newItem();
		void currentSerie(const QString &aCurrentText);
//       void open();
//       bool save();
//       bool saveAs();
//       void about();
//       void documentWasModified();

	private:
		Ui_JMainWdg *myUi;
		//JUeiManager myManager;
		JSeries mySeries;
		QMap<int, QString> mySeriesList;
//       void createActions();
//       void createMenus();
//       void createToolBars();
//       void createStatusBar();
//       void readSettings();
//       void writeSettings();
//       bool maybeSave();
//       void loadFile(const QString &fileName);
//       bool saveFile(const QString &fileName);
//       void setCurrentFile(const QString &fileName);
//       QString strippedName(const QString &fullFileName);
// 
//       QTextEdit *textEdit;
//       QString curFile;
// 
//       QMenu *fileMenu;
//       QMenu *editMenu;
//       QMenu *helpMenu;
//       QToolBar *fileToolBar;
//       QToolBar *editToolBar;
//       QAction *newAct;
//       QAction *openAct;
//       QAction *saveAct;
//       QAction *saveAsAct;
//       QAction *exitAct;
//       QAction *cutAct;
//       QAction *copyAct;
//       QAction *pasteAct;
//       QAction *aboutAct;
//       QAction *aboutQtAct;
};
#endif //JUEIMAINWINDOW_H
